package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

@TableName("mkt_win")
public class MktWin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 营销活动统计id */
    @Excel(name = "营销活动统计id")
    @TableField("statistics_id")
    private Long statisticsId;

    /** 参与人员的id */
    @Excel(name = "参与人员的id")
    @TableField("people_id")
    private Long peopleId;

    /** 中奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "中奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("winning_time")
    private Date winningTime;

    /** 奖励 */
    @Excel(name = "奖励")
    @TableField("reward")
    private Long reward;

    /** 领取方式 */
    @Excel(name = "领取方式")
    @TableField("receiving")
    private Long receiving;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStatisticsId(Long statisticsId)
    {
        this.statisticsId = statisticsId;
    }

    public Long getStatisticsId()
    {
        return statisticsId;
    }
    public void setPeopleId(Long peopleId)
    {
        this.peopleId = peopleId;
    }

    public Long getPeopleId()
    {
        return peopleId;
    }
    public void setWinningTime(Date winningTime)
    {
        this.winningTime = winningTime;
    }

    public Date getWinningTime()
    {
        return winningTime;
    }
    public void setReward(Long reward)
    {
        this.reward = reward;
    }

    public Long getReward()
    {
        return reward;
    }
    public void setReceiving(Long receiving)
    {
        this.receiving = receiving;
    }

    public Long getReceiving()
    {
        return receiving;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("statisticsId", getStatisticsId())
            .append("peopleId", getPeopleId())
            .append("winningTime", getWinningTime())
            .append("reward", getReward())
            .append("receiving", getReceiving())
            .toString();
    }
}